package com.probox.common.entity.vo.statistics;

import com.probox.common.core.enums.SourcePlatformEnum;
import com.probox.common.core.text.Convert;
import com.probox.common.core.utils.money.MoneyUtils;
import com.probox.common.entity.utils.DictUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

@Data
public class CardConsumptionSaleDetailVo implements Serializable {

    private Long serviceId;

    private String customerName;

    private String serviceName;

    private String  times;

    private Long price;

    public String getPriceStr(){
        return MoneyUtils.changeF2Y(price);
    }

    private String subscribeDate;

    private Integer storeNumber;

    private Integer storeItemNumber;

    private String name;

    private String storeName;

    private String sourcePlatform;

    private List<Long> storeIds;

    private String startTime;

    private String endTime;

    public String getSourcePlatformStr() {
        HashMap dictCacheMap = DictUtils.getDictCacheMap("source_platform");
        return Convert.toStr(dictCacheMap.get(getSourcePlatform()), "");
    }



}
